package com.jz.netthings.support;


import com.jz.netthings.bean.system.JyMenu;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yyy
 * @ClassName SecurityConstants
 * @Description 权限模块常量配置
 * @date 2018/7/26 15:24
 */
public interface SecurityConstants {

    /**
     * 所有菜单层级结构
     */
    List<JyMenu> ALL_MENUS = new ArrayList<>();

    /**
     * 当请求需要身份认证时，默认跳转的url
     *
     * @see
     */
    String DEFAULT_UNAUTHENTICATION_URL = "/authentication/require";

    /**
     * 默认的用户名密码登录请求处理url
     */
    String DEFAULT_SIGN_IN_PROCESSING_URL_FORM = "/authentication/form";

    /**
     * 默认的登录过期时间
     */
    int DEFAULT_SIGN_EXPIRE_TIME = 30;

    /**
     * 默认的访问用户的所有资源的地址
     */
    String DEFAULT_USERS_URLS = "/users/urls";

    /**
     * 默认的权限不足跳转的URL
     */
    String DEFAULT_ACCESS_DENIED_URL = "/authentication/noPermission";

    /**
     * 系统自动给所有请求加的前缀
     */
    String  DEFAULT_REQUEST_URL_PREFIX = "/adscm";

    /**
     * 登出URL
     */
    String DEFAULT_LOGOUT_URL = "/adscm/logout";

    /**
     * 获取某个菜单下面的所有资源（有权限的和没有权限的通过字段标志）
     */
    String DEFAULT_ALL_MENU_SRC_URL = "/adscm/system/menu/getMenuAllSrc/*";
    String [] DEFAULT_PERMITALL={"/adscm/order/**"
                                  ,"/adscm/logout"
                                  ,"/adscm/system/code/**"
                                  ,"/adscm/system/user/queryUsersByRoleId/*"
                                  ,"/adscm/uploads/**"
                                  ,"/netthings/engine/**"
                                  ,"/netthings/jingying/**"
                                  , "/adscm/filesystem/**"
                                  ,"/adscm/application/jzMachine/selectUseingMachine"
                                  ,"/adscm/analysis/**"
                                  ,"/adscm/bloodSources/xyLink/testMsg"
                                    ,"/adscm/application/plasmaSamples/**"
                                    ,"/adscm/application/providerCollection/selectPrintList"
                                    ,"/adscm/application/heatSeal/getHeatSealBoxByDate"
                                    ,"/adscm/application/heatSeal/getStockByBox"
                                    ,"/adscm/application/providerCollVideo/*"
                                    ,"/adscm/sync/**"
                                 };

    /**
     * 默认只需要系统登录就能访问的
     */
    String [] DEFAULT_NEEDLOGIN={
            DEFAULT_ALL_MENU_SRC_URL,

                                 };

}
